package com.ss.SmartStock.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ss.SmartStock.pojo.entity.Log;
import com.ss.SmartStock.mapper.LogMapper;
import com.ss.SmartStock.service.LogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-06-17
 */
@Service
public class LogServiceImpl extends ServiceImpl<LogMapper, Log> implements LogService {

    @Override
    public IPage<Log> selectPageLogs(int curPage, int pageSize) {
        // 创建分页对象
        Page<Log> page = new Page<>(curPage, pageSize);
        // 使用Mapper层的方法进行分页查询
        return this.baseMapper.selectPageLogs(page);
    }

}
